﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for HomeLoan
/// </summary>
/// 
namespace CE.HomeLoan
{
    public class HomeLoan
    {
        private Int64 _hlid;
        private Int16 _stepid;
        private Int16 _hlmortgagetype;
        private Int16 _hlpropertytype;
        private Int16 _hlproperty;
        private float _hlamount;
        private float _hlpropertyvalue;
        private Int16 _hlloantenure;
        private Int16 _hlinterestrate;
        private bool _hloffsetschemes;
        private bool _hllockin;
        private string _fullname;
        //private string _lastname;
        private string _contactno;
        private string _email;
        private Int64 _refceuserId;
        private Int64 _vieweddetailid;

        private bool _status;
        private DateTime _createddate;
        private DateTime _modifieddate;

        private string _info1;
        private Int64 _ninfo1;
        private Int64 _ninfo2;
        private Int64 _ninfo3;
        private Int64 _ninfo4;
        public HomeLoan()
        {
            //
            // TODO: Add constructor logic here
            //
            ClearFields();
        }

        public Int64 HLId
        {
            get { return _hlid; }
            set { _hlid = value; }
        }

        public Int16 StepId
        {
            get { return _stepid; }
            set { _stepid = value; }
        }

        public Int16 HLMortgageType
        {
            get { return _hlmortgagetype; }
            set { _hlmortgagetype = value; }
        }

        public Int16 HLPropertyType
        {
            get { return _hlpropertytype; }
            set { _hlpropertytype = value; }
        }

        public Int16 HLProperty
        {
            get { return _hlproperty; }
            set { _hlproperty = value; }
        }

        public float HLAmount
        {
            get { return _hlamount; }
            set { _hlamount = value; }
        }

        public float HLPropertyValue
        {
            get { return _hlpropertyvalue; }
            set { _hlpropertyvalue = value; }
        }

        public Int16 HLLoanTenure
        {
            get { return _hlloantenure; }
            set { _hlloantenure = value; }
        }

        public Int16 HLInterestRate
        {
            get { return _hlinterestrate; }
            set { _hlinterestrate = value; }
        }

        public bool HLOffsetSchemes
        {
            get { return _hloffsetschemes; }
            set { _hloffsetschemes = value; }
        }

        public bool HLLockIn
        {
            get { return _hllockin; }
            set { _hllockin = value; }
        }

        public string FullName
        {
            get { return _fullname; }
            set { _fullname = value; }
        }

        //public string LastName
        //{
        //    get { return _lastname; }
        //    set { _lastname = value; }
        //}

        public string ContactNo
        {
            get { return _contactno; }
            set { _contactno = value; }
        }

        public string Email
        {
            get { return _email; }
            set { _email = value; }
        }

        public Int64 RefCEUserId
        {
            get { return _refceuserId; }
            set { _refceuserId = value; }
        }

        public Int64 ViewedDetailId
        {
            get { return _vieweddetailid; }
            set { _vieweddetailid = value; }
        }

        public bool Status
        {
            get { return _status; }
            set { _status = value; }
        }

        public DateTime CreatedDate
        {
            get { return _createddate; }
            set { _createddate = value; }
        }

        public DateTime ModifiedDate
        {
            get { return _modifieddate; }
            set { _modifieddate = value; }
        }

        public Int64 NInfo1
        {
            get { return _ninfo1; }
            set { _ninfo1 = value; }
        }

        public Int64 NInfo2
        {
            get { return _ninfo2; }
            set { _ninfo2 = value; }
        }

        public Int64 NInfo3
        {
            get { return _ninfo3; }
            set { _ninfo3 = value; }
        }

        public Int64 NInfo4
        {
            get { return _ninfo4; }
            set { _ninfo4 = value; }
        }

        public string Info1
        {
            get { return _info1; }
            set { _info1 = value; }
        }

        public void ClearFields()
        {
            _hlid = 0;
            _stepid = 0;
            _hlmortgagetype = 0;
            _hlpropertytype = 0;
            _hlproperty = 0;
            _hlamount = 0;
            _hlpropertyvalue = 0;
            _hlloantenure = 0;
            _hlinterestrate = 0;
            _hloffsetschemes = false;
            _hllockin = false;
            _fullname = "";
            //_lastname = "";
            _contactno = "";
            _email = "";

            _refceuserId = 0;
            _vieweddetailid = 0;
            _status = false;
            _createddate = new DateTime();
            _modifieddate = new DateTime();
            _createddate = CE.Global.General.GetUTCDateTime();
            _modifieddate = CE.Global.General.GetUTCDateTime();

            _ninfo1 = 0;
            _ninfo2 = 0;
            _ninfo3 = 0;
            _ninfo4 = 0;
            _info1 = "";
        }

    }
}